package com.weng.cloud.service8881.jaxrs.entity;

import lombok.Data;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;

/**
 * @Author: weng
 * @Date: 2022/5/2
 * @Description: com.weng.cloud.service8881.jaxrs.entity
 */
@Data
public class TestJaxRsEntity {

    String body;
    @HeaderParam("h") String h;
    @QueryParam("qp1") String qp1;
    @DefaultValue("fault") @QueryParam("qp2") String qp2;

    //bean中没有找到对应的入参，不能这么写
    //@PathParam("arg")
    String arg;
    @PathParam("arg")
    public void setArg(String arg){
        this.arg = arg;
    }
}
